<?php
$page_title="Manage Urgent Seva ";
include("includes/header.php");

$seva_id=$_GET["seva_id"];
$query = "SELECT * FROM bkitc_urgent_seva where rec_status=1 and seva_id=".$seva_id;
$mode=$_GET["mode"];


if($mode=="edit") 	$seva_info=@array_pop(qry_data("select * from bkitc_urgent_seva where seva_id=".$seva_id));
if($mode=="del"){
	exec_qry("update bkitc_urgent_seva set rec_status=0 where seva_id=".$seva_id);//Soft Delete
	header("location:urgent_seva_list.php");
}
?>				
<div class="fleft">
<ul class="subMenu">
<li><a href="edit_urgent_seva.php?mode=add">Add New </a></li>
<li><a href="urgent_seva_list.php?mode=result">Back to Seva List </a></li>
</ul>
</div>
<div class="cleardiv"></div>
	<div style="width:100%" class="content_bg">
	<form method="post" action="edit_urgent_seva_pro.php?seva_id=<?=$_GET["seva_id"]?>" > 
		<table class="edit_urgent_seva_pro.php" width="600"  cellpadding="8" border="0" cellspacing="3"> 
			<tr>
				<td  height="10" style="padding:2px;margin:2px" colspan="2" align="right"><small style="font-size:11px"> <i><?=ast()?>  Required fields.</i></small></td>
			</tr>
			<tr >
				<td width="90" class="frmLabel">Urgent Seva Title  <?=ast()?></td>
				<td > <input type="text" class="txtbox"  name="seva_title" size="70" value="<?=$seva_info["seva_title"]?>"> </td>
			</tr>
				
			<tr>
				<td class="frmLabel" valign="top" colspan="2"> Desc <?=ast()?><br/><br/>
				 <textarea class="txtarea"  id="seva_desc" rows="4" cols="90" name="seva_desc" style="width:800px;height:70px;"><?=$seva_info["seva_desc"]?></textarea> </td>
			</tr>
			
			
	
			<tr bgcolor="#fff" style="height:50px;margin:0px;padding:0px;">
				
				<td  style="margin:0px;padding:2px;" align="right" colspan="2">
				<input type="submit" class="button"  value="Save Info">&nbsp;
				<input class="button" type="reset">
				<input onclick="location.href='urgent_seva_list.php'"  type="button" class="button" value=" Back to Urgent Seva List">
				</td>
			</tr>
			
		</table>
	</form>
</div>

<div style="margin-bottom:40px">

</div>


<? include("includes/footer.php");?>
